package com.supreme.studyserver.component;

import com.supreme.studyserver.interfacepkg.Singer;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
@Qualifier("metalSinger")
public class MetalSinger implements Singer {
    @Override
    public String sing(String lyrics) {
        System.out.println("I am singing with DIO voice: " + lyrics);
        return "I am singing with DIO voice: " + lyrics;
    }

    @Override
    public void singSang(String lyrics) {
        System.out.println("I am singing with DIO voice: " + lyrics);
    }
}
